package com.atguigu.lease.model.enums;

public enum Hello implements BaseEnum{

    //3.定义枚举的类别
    MYHELLO(1,"你好世界1"),
    HELLO1(2,"你好世界2"),
    HELLO2(3,"你好世界3"),
    HELLO3(4,"你好世界4");


    //1先写属性
    private Integer code;
    private String  message;

    //2.定义构造方法
    Hello(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getName() {
        return this.message;
    }
}
